<?php if (($action & (Form::ACTION_ALL ^ Form::ACTION_INDEX)) == $action) { ?>
<span class="<?php echo $class ?>">
  <label for="<?php echo $name ?>"><?php echo $title ?>:</label>

  <span class="form-element-body">
    <?php if (($action & (Form::ACTION_EDIT | Form::ACTION_CREATE)) == $action) { ?>
    <input type="file" name="<?php echo $name ?>" />

    <br/><br/>
    <?php } ?>
<?php } ?>

<?php if (($action & (Form::ACTION_ALL ^ Form::ACTION_CREATE)) == $action) { ?>
  <?php if ($thumb_src) { ?>
    <a href="<?php echo $image_src ?>" class="lightbox"><img src="<?php echo $thumb_src ?>"/></a>
  <?php } else { ?>
    <span class="no-wrap"><img src="<?php echo s::config()->get('theme_url') ?>/images/icons/cross.png"/> missing!</span>
  <?php } ?>
<?php } ?>

<?php if (($action & (Form::ACTION_ALL ^ Form::ACTION_INDEX)) == $action) { ?>
  </span>
</span>
<?php } ?>